/*
 * Copyright (c) 2013 WDCY Information Technology Co. Ltd
 * www.wdcy.cc
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * WDCY Information Technology Co. Ltd ("Confidential Information").
 * You shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement you
 * entered into with WDCY Information Technology Co. Ltd.
 */
package com.andaily.zhishifenzi.service.impl;

import com.andaily.zhishifenzi.domain.dto.IndexDto;
import com.andaily.zhishifenzi.domain.dto.log.SystemLogsDto;
import com.andaily.zhishifenzi.infrastructure.loader.IndexDtoLoader;
import com.andaily.zhishifenzi.infrastructure.loader.SystemLogsDtoLoader;
import com.andaily.zhishifenzi.service.CommonsService;
import org.springframework.stereotype.Service;

/**
 * @author Shengzhao Li
 */
@Service("commonsService")
public class CommonsServiceImpl implements CommonsService {


    @Override
    public IndexDto loadIndexDto() {
        IndexDtoLoader indexDtoLoader = new IndexDtoLoader();
        return indexDtoLoader.load();
    }

    @Override
    public SystemLogsDto loadSystemLogsDto(SystemLogsDto systemLogsDto) {
        SystemLogsDtoLoader loader = new SystemLogsDtoLoader(systemLogsDto);
        return loader.load();
    }
}
